

<form action="" method="POST" class="price">

    <img src="/resource/www/imgs/huod_4.png" class="jind-img">

     <div class="li fix">
        <span class="text">价格</span>
        <input type="text" class="input piaow" name="priceService" value="<{$activity.priceService/100}>">
        <span class="right">€/ 人</span>
    </div>

    <div class="li fix">
        <span class="text">费用描述</span>
        <textarea class="feiy" name="descService" placeholder="请详细介绍活动中所涉及的费用"><{$activity.descService}></textarea>
    </div>

    <div class="click-btn fix">
        <a href="javascript:;" onclick="javascript :history.back(-1);" class="go-back">上一步</a>
        <input type="submit" name="submit1" class="submit" value="下一步" onclick="return submit_activ_price();">
    </div>

</form>

<script>

function submit_activ_price() {
    var oReg=/^[0-9]+([.]{1}[0-9]{1,2})?$/;
    var oPriceService = $('.price').find("input[name='priceService']").val();
    if (!$.trim(oPriceService)) {
        layer.msg('请输入价格');
        return false;
    }
    if(!oReg.test(oPriceService)){
    	layer.msg("请输入合法数字，最多精确到两位小数！");
    	return false;   	
    }
    var oDescService = $('.price').find("textarea[name='descService']").val();
    if (!$.trim(oDescService)) {
        layer.msg('请输入费用描述');
        return false;
    }

}

</script>
